using MediatR;
using System.ComponentModel.DataAnnotations;

namespace B.S.NewMedical.Api.Write.Application.Command.ContentManagement.Carousel
{
    /// <summary>
    /// 更新轮播图命令
    /// </summary>
    public class UpdateCarouselCommand : IRequest<bool>
    {
        /// <summary>
        /// 轮播图ID
        /// </summary>
        [Required(ErrorMessage = "轮播图ID不能为空")]
        public int Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(100, ErrorMessage = "标题长度不能超过100个字符")]
        public string? Title { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        [StringLength(500, ErrorMessage = "图片长度不能超过500个字符")]
        public string? Image { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        [StringLength(500, ErrorMessage = "链接长度不能超过500个字符")]
        public string? Link { get; set; }

        /// <summary>
        /// 排序序号
        /// </summary>
        public int? Number { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool? Status { get; set; } = true;

        /// <summary>
        /// 操作人
        /// </summary>
        public string? UpdatePeople { get; set; }
    }
}